<template>
  <div class="app-container">
    <ht-search-form
      v-show="showSearch"
      :dictMap="dictMap"
      :queryParams="queryParams"
      :outputQueryParams="queryParams"
      :formOptions="formOptions"
      :advOptions="[]"
      defaultEventKey="entryTable"
    ></ht-search-form>
    <ht-table
      ref="dataTable"
      :showSerialNumber="false"
      :multi-select="false"
      :dictMap="dictMap"
      :reqConfig="reqConfig"
      :queryParams="queryParams"
      :tableBindColumns="tableBindColumns"
      defaultEventKey="entryTable"
    ></ht-table>
  </div>
</template>
<script>
import { apiUrlConfig } from "@/api/cnaps/ccms/913/bank_info_query.js";
import { listPageMixin } from "@/libs/listPageMixin";
export default {
  name: "BankInfoQuery",
  mixins: [listPageMixin],
  components: {},
  data() {
    return {
      reqConfig: apiUrlConfig,
      //数据字典
      searchFormDictList: ["SYS_CODE", "TYPECODE"],
      showSearch: true,
      // 查询参数
      queryParams: {
        bankCode: "",
        bankName: "",
        sysCode: "",
      },
      formOptions: [],
      tableBindColumns: [
        { label: `行别代码`, prop: "bankCode", align: "center" },
        {
          label: `行别名称`,
          prop: "bankName",
          align: "center",
        },
        {
          label: `类别代码`,
          prop: "bankTypecode",
          align: "center",
          dictCode: "TYPECODE",
        },
        {
          label: `类别名称`,
          prop: "bankTypename",
          align: "center",
        },
        {
          label: `系统编号`,
          prop: "sysCode",
          align: "center",
          dictCode: "SYS_CODE",
        },
      ],
    };
  },
  mounted() {
    this.formOptions = [
      {
        type: "input",
        prop: "bankCode",
        defaultAttr: {
          label: "行别代码",
          placeholder: "请输入行别代码",
        },
      },
      {
        type: "input",
        prop: "bankName",
        defaultAttr: {
          label: "行别名称",
          placeholder: "请输入行别名称",
        },
      },
      {
        type: "dict",
        dict: "SYS_CODE",
        prop: "sysCode",
        defaultAttr: {
          size: "small",
          label: "系统编号",
          placeholder: "请选择系统编号",
        },
      },
    ];
  },
  methods: {},
};
</script>
